<?php
defined('IN_PHPCMS') or exit('Access Denied');
include admin_tpl('header');
?>
<body>
<script type="text/javascript" src="images/js/validator.js"></script>
<form action="?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>" method="post" name="myform">
<input type="hidden" name="forward" id="forward" value='<?=$forward?>'>
<table cellpadding="0" cellspacing="1" class="table_form">
    <caption>添加专题</caption>
	  <tr>
      <th width="15%"><strong>所属类别</strong></th>
      <td>
	  <?=form::select_type($mod, 'info[typeid]', 'typeid', '请选择', $typeid, 'require="true" compare=">0" datatype="compare" msgid="specialmsg" msg="请选择所属类别"')?>&nbsp;<a style="color:red" href="?mod=special&file=type&action=add">添加分类</a><span id="specialmsg"></span>
      </td>
    </tr>
	<tr>
      <th><strong>专题名称</strong></th>
      <td><input type="text" name="info[title]" id="title" size="50" require="true" datatype="limit" min="1" max="50"  msg="字符长度范围必须为1到50位" msgid="msgid1"> <?=form::style('info[style]')?><span id="msgid1"></span></td>
    </tr>
    <tr>
      <th><strong>缩略图</strong></th>
      <td>
	  <?=form::upload_image('info[thumb]', 'thumb', '', 50, '', 'require="true" datatype="limit" msg="请上传缩略图" msgid ="msgid2"')?><span id="msgid2"></span>
    </td>
    </tr>
    <tr>
      <th><strong>专题横幅</strong></th>
      <td>
	  <?=form::upload_image('info[banner]', 'banner', '', 50)?>
    </td>
    </tr>
    <tr>
      <th><strong>专题简介</strong></th>
      <td><textarea name="info[description]" id="description" cols="60" rows="5"></textarea>  <?=form::editor('description','standard','100%', 300)?></td>
    </tr>
	<tr>
      <th><strong>专题页模板</strong></th>
      <td><?=form::select_template($mod, 'info[template]', 'template', '', 'require="true" datatype="limit" msg="请选择模板" msgid="msgid3"', 'special')?> <font color="red">*</font><span id="msgid3"></span></td>
    </tr>
	<tr>
      <th><strong>专题页文件名</strong></th>
      <td><input type="text" name="info[filename]" id="filename" size="25" regexp="^[a-z0-9_]+$" require="true" datatype="limit|ajax" min="1" max="50" url="?mod=<?=$mod?>&file=<?=$file?>&action=checkname" msg="字符长度范围必须为1到50位|" msgid="msgid4"> <font color="#ff0000">.<?=$PHPCMS['fileext']?></font><span id="msgid4"></span></td>
    </tr>
	<tr>
      <th><strong>管理权限</strong></th>
      <td><?=form::checkbox($ROLE, 'roleids', 'roleids', '', 5);?></td>
    </tr>
	<tr>
      <th><strong>状态</strong></th>
      <td>
	  <input type="radio" name="info[disabled]" id="disabled" value="0" checked> 发布
	  <input type="radio" name="info[disabled]" id="disabled" value="1"> 暂停
	  <input type="hidden" name="filesize" id="filesize" value="">
	  </td>
    </tr>
	<tr>
      <td></td>
      <td><input type="submit" name="dosubmit" value=" 确定 "> &nbsp;&nbsp; <input type="reset" name="reset" value=" 清除 "> </td>
    </tr>
</table>
</form>
</body>
</html>
<script LANGUAGE="javascript">
<!--
$().ready(function() {
	  $('form').checkForm(1);
	});
//-->
</script>